import { createApp } from 'vue'
import './style.css'
import '@/assets/css'
import '@/assets/styles/index.scss' // global css
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElIconModules from '@element-plus/icons-vue'
import * as echarts from 'echarts'
const app = createApp(App)
Object.keys(ElIconModules).forEach(function (key) {
  app.component(ElIconModules[key].name, ElIconModules[key])
})
app.config.globalProperties.$echarts = echarts
//挂载路由
app.use(router)
// 挂载ui组件
app.use(ElementPlus)
app.mount('#app')
